package com.qf.fmall.user.service;

import com.qf.fmall.user.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qf.fmall.user.vo.UserRegistRequestVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author djl
 * @since 2024-04-24
 */
public interface IUserService extends IService<User> {


    /**
     * 注册用户
     * @param vo
     * {"username":"luffy003","password":"123456","repassword":"123456"}
     *
     */
    void regist(UserRegistRequestVo vo);

    /**
     * 登录
     * @param username
     * @param password
     * @return 返回用户名对应的user对象
     */
    User login(String username, String password);
}
